preserve (someone's) dignity

Translations
сохранять достоинство (кого-то)
She managed to preserve her dignity despite the difficult situation.
Она сумела сохранить свое достоинство, несмотря на сложную ситуацию.
Definitions
To maintain or protect a person's sense of self-respect and worth, especially in situations where they may feel vulnerable or humiliated.